package com.frame.platform.user;

import java.util.List;

import com.frame.platform.dept.Wfdept;
import com.frame.session.SessionUser;


public class SessionOaUser implements SessionUser{

	private String userId;
	private String loginName;
	private String userName;
	private String style;
	private String deptName;
	private String boardName;
	private String boardId;
	private String deptId;
	private List<Wfdept> depts;
	/**
	 * 是否平台管理员
	 */
	private boolean isPlatform;

	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}

	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	/**
	 *
	 * 功能:是否平台管理员<br>
	 * 参数:<br>
	 * 作者:王海锋<br>
	 * 时间:2012-4-8 下午10:04:35<br>
	 * 说明:<br>
	 * 变更:<br>
	 */
	public boolean isPlatform() {
		for(Wfdept dept:depts){
			if(dept.getDeptid()==1)
				return true;
		}
		return false;
	}
	public void setPlatform(boolean isPlatform) {
		this.isPlatform = isPlatform;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public List<Wfdept> getDepts() {
		return depts;
	}
	public void setDepts(List<Wfdept> depts) {
		this.depts = depts;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getBoardId() {
		return boardId;
	}
	public void setBoardId(String boardId) {
		this.boardId = boardId;
	}
	public String getBoardName() {
		return boardName;
	}
	public void setBoardName(String boardName) {
		this.boardName = boardName;
	}

}
